//
//  SQAddressEditCell.h
//  pai
//
//  Created by pro on 14-12-2.
//  Copyright (c) 2014年 linjunjing. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SQSocket.h"

@protocol addressDelegate <NSObject>

-(void)addressedit:(NSInteger)addressID;
-(void)addressdelete:(NSInteger)addressID;

@end

@interface SQAddressEditCell : UICollectionViewCell

@property (nonatomic) NSInteger addressID;
@property (weak,nonatomic)NSString* addressName;
@property (weak,nonatomic)NSString* addressMobile;
@property (weak,nonatomic)NSString* address;

@property (nonatomic, weak) id<addressDelegate> delegate;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *mobileLabel;
@property (weak, nonatomic) IBOutlet UILabel *addressLabel;
@property (weak, nonatomic) IBOutlet UIButton *editBtn;
@property (weak, nonatomic) IBOutlet UIButton *deleteBtn;

-(void)setItem:(addr_t)address;

- (IBAction)doActionEdit:(id)sender;
- (IBAction)doActionDelete:(id)sender;

@end
